﻿#include "./src/frend/uilogin/LoginDialog.h"
#include "./src/frend/uimain/BuckMain.h"
#include "./src/helper/filehelper.h"
#include "src/bend/dao/daobuckets.h"
#include "src/bend/man/manbuckets.h"
#include "src/bend/man/mandb.h"
#include <QtWidgets/QApplication>
void test()
{
    ManDB* m = ManDB::instance();
    m->init();
}
int main(int argc, char* argv[])
{
    QApplication a(argc, argv);
    test();
    QString qssStr = FileHelper::readAllTxt(":/qss/resource/qss/default.qss");
    a.setStyleSheet(qssStr);
    MDB->init();

    MB->setBuckets();
    BuckMain w;
    w.showLoginDialog();
    return a.exec();
}
